home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / netutils / nb22.arj / RUNCOMM.BAT < prev    next >
DOS Batch File  |  1993-12-02  |  1KB  |  34 lines

  1. @echo off
  2. rem ***    Runcomm.bat     -    Version 2.0
  3. rem ***
  4. rem *** Runcomm is a special batch file to be used when implementing a menu
  5. rem *** option which runs any DOS command.  The menu option should be called
  6. rem *** something like 'Run a DOS Command' and the actual command line 
  7. rem **  should be similar to the following (depending on the installation
  8. rem *** disk and directory):
  9. rem ***
  10. rem ***       x:\notice\runcomm %% 
  11. rem ***
  12. rem *** The parameter %% will cause the user to be prompted when the menu
  13. rem *** option is run and the prompt should be 'DOS Command:'.  Whatever
  14. rem *** the user enters will be passed to runcomm.bat to be executed by the
  15. rem *** following command line:
  16. rem ***
  17. cls
  18. %1 %2 %3 %4 %5 %6 %7 %8 %9
  19. pause
  20. rem ***
  21. rem *** Note: The Notice Board command only requests a single parameter 
  22. rem ***       using one %% string, however, the user can type a full DOS
  23. rem ***       command which may take several parameters and switches.  It
  24. rem ***       is important, therefore, to put all 9 possible DOS batch
  25. rem ***       parameters in the above command line to ensure that all of the
  26. rem ***       user's parameters and switches are carried through.
  27. rem ***
  28. rem *** Replace the following with the commands to restart NOTICE BOARD, 
  29. rem *** such as:
  30. rem
  31. rem c:
  32. rem cd \notice\
  33. notice
  34.